projects
/
babl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1886cde
)
babl.db: do not use strtod - it is locale dependent
author
Øyvind Kolås
<pippin@gimp.org>
Mon, 14 Nov 2016 23:33:41 +0000
(
00:33
+0100)
committer
Øyvind Kolås
<pippin@gimp.org>
Mon, 14 Nov 2016 23:33:46 +0000
(
00:33
+0100)
babl/babl.c
patch
|
blob
|
history
diff --git
a/babl/babl.c
b/babl/babl.c
index 7209c8fd81f9a719c860b50bf668876b8a9876be..b91b3acdc82c2229e67bd503386e9d3c1242ad03 100644
(file)
--- a/
babl/babl.c
+++ b/
babl/babl.c
@@
-334,11
+334,11
@@
static void babl_init_db (const char *path)
{
if (!strncmp (token2, "error=", 6))
{
- babl->fish.error =
strtod (token2 + 6, NULL
);
+ babl->fish.error =
babl_parse_double (token2 + 6
);
}
else if (!strncmp (token2, "cost=", 5))
{
- babl->fish_path.cost =
strtod (token2 + 5, NULL
);
+ babl->fish_path.cost =
babl_parse_double (token2 + 5
);
}
else if (!strncmp (token2, "pixels=", 7))
{